if ( (AMReX_SPACEDIM EQUAL 1) OR NOT AMReX_FINTERFACES)
   return()
endif ()

set(_sources
   advance_${AMReX_SPACEDIM}d.f90
   advance.cpp
   init_phi_${AMReX_SPACEDIM}d.f90
   main.cpp
   myfunc_F.H
   myfunc.H )

list(TRANSFORM _sources PREPEND "Source/")

set(_input_files  Exec/inputs_${AMReX_SPACEDIM}d)

setup_tutorial(_sources _input_files)

unset( _sources )
unset( _input_files  )



# if ( (NOT AMReX_CUDA) AND (NOT AMReX_SYCL) )

#    add_custom_target( run_${EXENAME}
#       COMMAND
#       cp ${INPUT_FILES} ${CMAKE_CURRENT_BINARY_DIR}
#       COMMAND
#       ${EXENAME} inputs_${AMReX_SPACEDIM}d  nsteps = 10
#       DEPENDS
#       ${INPUT_FILES}
#       WORKING_DIRECTORY
#       ${CMAKE_CURRENT_BINARY_DIR}
#       COMMENT
#       "Running ${EXENAME}"
#       VERBATIM
#       )



#    #
#    # Add to the "tutorial" target
#    #
#    add_tutorial (run_${EXENAME})

# endif ()
